Developer Documentation

QuickTime 4 API Documentation

Programming With QuickTime VR

| Previous | Chapter Contents | Chapter Top | Next |

Viewing Constraints

The constraints parameter of the QTVRGetConstraintStatus function is a pointer to a long integer that encodes the constraints of a view. If a bit in the long integer is set, the current view exhibits the corresponding constraint. The bits are addressed using these constants:

enum {
    kQTVRUnconstrained                              = 0
    kQTVRCantPanLeft                                = 1L << 0,
    kQTVRCantPanRight                               = 1L << 1,
    kQTVRCantPanUp                                  = 1L << 2,
    kQTVRCantPanDown                                = 1L << 3,
    kQTVRCantZoomIn                                 = 1L << 4,
    kQTVRCantZoomOut                                = 1L << 5,
    kQTVRCantTranslateLeft                          = 1L << 6,
    kQTVRCantTranslateRight                         = 1L << 7,
    kQTVRCantTranslateUp                            = 1L << 8,
    kQTVRCantTranslateDown                          = 1L << 9
};

Constant descriptions

kQTVRUnconstrained
The view has no constraints. This is not a bit selector but a value that indicates that none of the following bits is set.
kQTVRCantPanLeft
If this bit is set, the view cannot pan left.
kQTVRCantPanRight
If this bit is set, the view cannot pan right.
kQTVRCantPanUp
If this bit is set, the view cannot pan up.
kQTVRCantPanDown
If this bit is set, the view cannot pan down.
kQTVRCantZoomIn
If this bit is set, the view cannot zoom in.
kQTVRCantZoomOut
If this bit is set, the view cannot zoom out.
kQTVRCantTranslateLeft
If this bit is set, the view cannot translate to the left. This constraint is valid only for object nodes.
kQTVRCantTranslateRight
If this bit is set, the view cannot translate to the right. This constraint is valid only for object nodes.
kQTVRCantTranslateUp
If this bit is set, the view cannot translate up. This constraint is valid only for object nodes.
kQTVRCantTranslateDown
If this bit is set, the view cannot translate down. This constraint is valid only for object nodes.

© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |